package inc.gome.dynamic.datasource.lock;

import java.util.List;


/**
 *  行锁抽象方法
 */
public interface Locker {


    boolean acquireLock(List<RowLock> rowLock) ;


    boolean releaseLock(List<RowLock> rowLock);


    boolean releaseLock(String xid, Long branchId);


    boolean releaseLock(String xid, List<Long> branchIds);


    boolean isLockable(List<RowLock> rowLock);


    void cleanAllLocks();
}
